package com.zidian.leader;

import android.app.Application;

import com.orhanobut.logger.Logger;
import com.squareup.leakcanary.LeakCanary;
import com.zidian.leader.common.util.HawkUtils;

/**
 * Application
 * Created by GongCheng on 2016/10/24 0024.
 */

public class MyApplication extends Application {
    private static MyApplication INSTANCE;

    @Override
    public void onCreate() {
        super.onCreate();
//        if (LeakCanary.isInAnalyzerProcess(this)) {
//            return;
//        }
//        LeakCanary.install(this);
        INSTANCE = this;
        HawkUtils.init(this);
        Logger.init("Leader");

    }

    public static MyApplication getInstance(){
        return INSTANCE;
    }
}
